package com.sleet.yuemiao.pojo;

import lombok.Data;
import lombok.ToString;
import lombok.experimental.Accessors;

import javax.validation.Valid;
import javax.validation.constraints.NotEmpty;
import java.util.List;

/**
 * @program: bigshark
 * @ClassName PagehotcardDto
 * @description:
 * @author: Liyongxing
 * @create: 2021-12-01 14:14
 **/
@Data
@ToString
@Accessors(chain = true)
public class PageHotCardDto extends PageDto{
    @Valid
    List<ActivityDto> activityDtoList;

    @Data
    @ToString
    @Valid
    @Accessors(chain = true)
    public static class ActivityDto{
        private Integer id;
        /**
         * 活动名称
         */
        @NotEmpty(message = "活动名称不能为空")
        private String actvtyName;
        /**
         * 活动明细对象
         */
        @Valid
        private ActivityDetailsDto activityDetailsDto;
    }

    @Data
    @Valid
    @Accessors(chain = true)
    public  static class ActivityDetailsDto{
        /**
         * 主键
         */
        private Integer id;
        /**
         * 活动主表id
         */
        private Integer activityId;

        /**
         * 热门卡推荐图片地址
         */
        private String actvtyPicUrl;
        /**
         * 活动亮点1
         */
        private String activityDotNoe;
        /**
         * 活动亮点2
         */
        private String activityDotTwo;
        /**
         * 活动亮点3
         */
        private String activityDotThree;
        /**
         * 点击活动自身的跳转链接f/我要申请链接id
         */
        private Integer linkId;

//        @Valid
//        private LinkDto linkDto;
    }
}
